/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2015-07-29     Arda.Fu      first implementation
 */
#include <stdint.h>
#include <rtthread.h>
#include <rtdevice.h>

#include "led.h"
#include "mqtt_task.h"
#include "key.h"

int main(void)
{
    led_init();             // 初始化板子上的 LED
    start_led3_thread();    // 启动 LED3 任务，LED3 作为心跳灯
    start_mqtt_thread();    // 启动 MQTT 任务
    start_key_thread();     // 启动按键检测任务

    while (1)
    {
        rt_thread_mdelay(2000);
    }
}

